package com.ruan.config;

import lombok.Data;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * @ClassName:AlipayConfig
 * @Author:阮昇
 * @Description:
 * @Datetime: 2023/9/14 19:54
 **/
@Configuration
@Data
@Component
public class AlipayConfig {

    /**
     * 应用ID,您的APPID，收款账号既是您的APPID对应支付宝账号
     */
    private String appId = "9021000122697947";

    /**
     * 商户私钥，您的PKCS8格式RSA2私钥
     */
    private String privateKey = "MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCc+w/w/JXHaP9vY26BI3Gu8mhuNHepMqqqNlGnF6k/tNH8ZHpSyoirdViqJdqANggsMMfBH3t19U8PsySYnd5IUgAufdZpXsNzvtm4a6Bh067q5JW6OsXdBsbaINXYtktnqo0MDwFIVNM+IcK5ZADhMSdiRtnFvas0ncAefQy4v77zThN6YJU1y89dB7zmWf8xDcYbTXUd9zWKK+t7phLU98i8f5ZPD2JUdNbh7uK4CfFKHsZbcWhilTD6HEnWednvft4SUG9ye5bc0Wo4SrGgcnXxOldur67rQ+MYOP07aN4aAtqNZb7SRSGQo15oJejo2TrDhfQEG9rBpFQaZwOdAgMBAAECggEAWU3OlNbs0mOeJR0YyWiDjPYkiMVaaawEQQ7jxr4EL9TLPN1gZWcI9xmr1ifwtM2IOrOJgAlL8CAc2R6drCDrSpMzvT8jUhBx+o/RRkQcGmsVcFWYBDjZRVNMntzdKwsRvKje0sRag26WOht0rokAoxuWfyc1TnQHSMiRegbDzPmJkUrQqDIuaErA9OTN4uqG5C6q9CMoPo2nqYADb3wuxEKaA7lMNwg1WeHJpymR/evIKbANg43KRPCDfb7rlgcr5DcENUwJZjt8eFPPWz3OMsyS0ZTR2FiNsZoq5zJtMPRY0gUuLZkq28XIQYpDX5VERzOWOU9NhBxMfqWdF908tQKBgQDpMRaSvbGyvrLpIMqfmWpezrccgDlnynnG2rE3Ydg3RG8gt5OgPN6Qo44lAXGExKFuB4N6HkCIgrKumRAp8yoRaep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YW7S1haZZ9KzfVCrqzwWG19NPu6h8BY3OCXS5jDoJQnU8s1lp74uyTrROFFIsvRrstCqof/qVR37FuDobgqhJC7gcr2LrNQO0xW2LZC6bQeDAvQLCiZQx6Uw6ROZ9/wIDAQAB";

    /**
     * 服务器异步通知页面路径需http://格式的完整路径，不能加?id=123这类自定义参数
     */
    private String notifyUrl = "http://oj44ngtsx6rt.ngrok.xiaomiqiu123.top/pay/callBack";

    /**
     * 页面跳转同步通知页面路径 需http://格式的完整路径.
     * 支付完成后返回的地址
     */
    private String returnUrl = "http://localhost:8080/";

    /**
     * 签名方式
     */
    private String signType = "RSA2";

    /**
     * 字符编码格式
     */
    private String charset = "utf-8";

    /**
     * 支付宝网关
     */
    private String gatewayUrl = "https://openapi-sandbox.dl.alipaydev.com/gateway.do";

    /**
     * 支付宝网关
     */
    private String logPath = "C:\\";
}

